package com.co.server.entity.vote.aide;

import java.util.Collection;

import com.co.server.entity.vote.TVote;

public class TVoteQuery extends TVote {

	/**
	 * 根据多个voteId查询
	 */
	private Collection<Integer> voteIds;
	
	/** 用户id */
    private Integer userId; 
    
    /**
	 * 是否查询锁表
	 */
	private Boolean forUpdate;
	
	public TVoteQuery() {
		
	}
	
	/**
	 * 投票数量
	 * @param voteNum
	 */
	public TVoteQuery(Integer id,Integer voteNum) {
		super.setId(id);
		super.setVoteNum(voteNum);
	}
	
	/**
	 * 赞数量，踩数量
	 * @param supportNum
	 * @param objectNum
	 */
	public TVoteQuery(Integer id,Integer supportNum,Integer objectNum) {
		super.setId(id);
		super.setSupportNum(supportNum);
		super.setObjectNum(objectNum);
	}
	

	public Collection<Integer> getVoteIds() {
		return voteIds;
	}

	public void setVoteIds(Collection<Integer> voteIds) {
		this.voteIds = voteIds;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	public Boolean getForUpdate() {
		return forUpdate;
	}

	public void setForUpdate(Boolean forUpdate) {
		this.forUpdate = forUpdate;
	} 
	
}